<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<button th:each="every:${session.FindWarehouseName}" th:value="${every}" th:text="${every}" onclick="Warehouseclick(this.value)"></button>
<table >
    <tr>
        <td  th:each="every2:${session.FindWarehouseState}" th:text="${every2}"></td>
    </tr>
</table>


</body>
<script type="text/javascript">
    function Warehouseclick(WareHouseName) {
      window.location = "FindWarehouseState.do?WareHouseName="+WareHouseName;
    }
</script>
</html>